package com.xhsj.user.sms.process.entity;

import com.xhsj.user.sms.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 任务表
 * </p>
 *
 * @author suxiaolin
 * @since 2020-03-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_purchase_process_task")
public class TbPurchaseProcessTask extends BaseEntity<TbPurchaseProcessTask> {

    private static final long serialVersionUID = 1L;

    /**
     * 审核用户id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 审核角色id
     */
    @TableField("role_id")
    private String roleId;

    /**
     * 审核部门id
     */
    @TableField("dept_id")
    private String deptId;

    /**
     * 业务数据id
     */
    @TableField("data_id")
    private String dataId;

    /**
     * 节点id
     */
    @TableField("node_id")
    private String nodeId;

    /**
     * 申请用户id
     */
    @TableField("proposer_id")
    private String proposerId;

    /**
     * 申请用户名称
     */
    @TableField(exist = false)
    private String proposerName;
    /**
     * 流程类型
     */
    @TableField("type")
    private String type;




    public TbPurchaseProcessTask(String userId, String roleId, String deptId, String dataId, String nodeId, String createBy, String proposerId,String type) {
        this.userId = userId;
        this.roleId = roleId;
        this.deptId = deptId;
        this.dataId = dataId;
        this.nodeId = nodeId;
        this.proposerId = proposerId;
        super.createBy = createBy;
        this.type = type;
    }



    public TbPurchaseProcessTask() {
    }
}
